package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.page.PageResult;
import cn.wolfcode.crm.query.EmployeeQueryObject;

import java.util.List;

public interface IEmployeeService {

    int deleteByPrimaryKey(Long id);

    int insert(Employee entity);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee entity);

    PageResult query(EmployeeQueryObject qo);

    int updateState(Long id);

    List<Employee> querForList(EmployeeQueryObject qo);

    Employee getEmployeeByUsername(String username);
<<<<<<< HEAD

    void changePassword(Long empId, String password);

    void goWork(Long empId);

    void backWork(Long empId);
=======
>>>>>>> 524224bf820c6d6da01f752551ee21b728709493
}
